<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<jsp:include page="/static/common/common_header.jsp"/>

<script type="text/javascript" src="/static/js/menu.js"></script>
<html>
<head>
    <title>菜单管理界面</title>
</head>
<body>
    <!--初始化列表-->
    <table id="menu_datagrid"></table>

    <!--工具栏-->
    <div id="menu_toolbar">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="addMenu">新增</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reloadMenu">刷新</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" data-cmd="parentMenu">返回上级菜单</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" data-cmd="childrenMenu">查看下级菜单</a>
    </div>

    <!--底部按钮-->
    <div id="menu_add_buttons">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" data-cmd="saveMenu">保存</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancelMenu">取消</a>
    </div>
    <!-- 添加/编辑对话框 -->
    <div id="menu_dialog">
        <form id="menu_form" method="post">
            <input type="hidden"  name="id" >
            <%--菜单名称--%>
            <div style="padding-top: 30px; margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="text"
                       data-options="label:'菜单名称',labelAlign:'right',labelWidth:100">

                </input>
            </div>
            <%--url--%>
            <div style="padding-top: 5px; margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="url"
                       data-options="label:'url',labelAlign:'right',labelWidth:100">

                </input>
            </div>
            <%--菜单--%>
            <div style="padding-left: 40px">
                <td>
                    上级菜单 <select id="system_menu" class="easyui-combotree" name="parent.id" style="width:70%;"
                                    data-options="valueField:'id',textField:'text',url:'/menu/selectAllParent'"></select>
                </td>
            </div>
        </form>
    </div>
</body>
</html>
